//引入mongoose
let mongoose=require('mongoose');
//创建目标集合模型对象
let indexSchema=new mongoose.Schema({
type:String
   
});
//建立模型与集合关联关联关系
let indexModel=mongoose.model('indexModel',indexSchema,'types');